package com.mujin.keji.collectionsystem.module.mypager.repository;

import android.arch.lifecycle.LiveData;

import com.mujin.keji.collectionsystem.base.BaseDto;
import com.mujin.keji.collectionsystem.base.BaseVo;
import com.mujin.keji.collectionsystem.base.CommonRepository;
import com.mujin.keji.collectionsystem.http.Api;
import com.mujin.keji.collectionsystem.module.mypager.dto.UpdatePwdDto;
import com.mujin.keji.collectionsystem.module.mypager.vo.UpdatePwdVo;

/**
 * 修改密码Repository
 *
 * @author weishixiong
 * @Time 2018-05-8
 */

public class UpdatePwdRepository extends CommonRepository<UpdatePwdDto> implements IUpdatePwdRepository {
    @Override
    public LiveData<BaseDto<UpdatePwdDto>> changeUserPassword(UpdatePwdVo baseVo) {
        return request(Api.changeUserPassword(baseVo)).send().get();
    }
}
